home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / Kernel / h / cPDBM.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-17  |  1.1 KB  |  48 lines

  1. /*
  2.   cPDBM.h - Emerald checkPoint database manager
  3.  
  4.   Copyright 1987 Clinton Jeffery
  5.   Last edit: 11/13/87
  6.  
  7.   This module manages database operations.  The database is kept both
  8.   in the standard Emerald Object Table and on disk in an NDBM(1) file.
  9.   Database entries are exactly the object descriptors for all
  10.   objects which have invoked a checkpoint operation.  This
  11.   violently simplifies the reconstruction of the object table.
  12.  
  13.   Operations are:
  14.   Load database entries from disk into the object table,
  15.   Read the database (from the object table), and
  16.   Write the database (write-through Object Table to disk).
  17.   Initialize the database (open/create)
  18.   Finalize the database
  19. */
  20. #ifndef PBLKSIZ
  21. #include "ndbm.h"
  22. #endif
  23.  
  24. extern DBM *CP_DBM;
  25. #ifdef CPNEWLOG
  26. extern DBM *newCP_DBM;
  27. #endif
  28.  
  29. extern GODP CP_LoadDbase();
  30.  
  31. extern void CP_ReadDbase(/* obj, offset, size */);
  32. /*
  33.   OID *obj;
  34.   long *offset,*size;  return values
  35. */
  36.  
  37. extern int CP_WriteDbase(/* obj, offset, size */);
  38. /*
  39.   ODP *obj;
  40.   long offset,size;
  41. */
  42.  
  43. extern int CP_InitDbase(); /* returns nil or succeeds... */
  44.  
  45. extern CP_FlushDbase();
  46.  
  47. extern void CP_FinalizeDbase();
  48.